package com.fly.bean.enums;

public enum CodeEnum {
        SUCCESS(200, "success"),
        FAIL(500, "error"),
        UNAUTHORIZED(401, "unauthorized");

        private final int code;
        private final String msg;

        CodeEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}